Description: Get the first day or the last day of the week/month/quarter/year to which a date belongs. Syntax: pdate (dathe first day,the last day